
namespace JTZY.Model.Order
{
    /// <summary>
    /// 退款单表
    /// </summary>
    [SugarTable("corecmsbillrefund")]
    public class Corecmsbillrefund
    {
        /// <summary>
        /// 退款单ID 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = false)]
        public string RefundId { get; set; }

        /// <summary>
        /// 售后单id 
        /// </summary>
        public string AftersalesId { get; set; }

        /// <summary>
        /// 退款金额 
        /// </summary>
        public decimal Money { get; set; }

        /// <summary>
        /// 用户ID 关联user.id 
        /// </summary>
        public long UserId { get; set; }

        /// <summary>
        /// 资源id，根据type不同而关联不同的表 
        /// </summary>
        public string SourceId { get; set; }

        /// <summary>
        /// 资源类型1=订单,2充值单 
        /// </summary>
        public int Type { get; set; }

        /// <summary>
        /// 退款支付类型编码 默认原路返回 关联支付单表支付编码 
        /// </summary>
        public string PaymentCode { get; set; }

        /// <summary>
        /// 第三方平台交易流水号 
        /// </summary>
        public string TradeNo { get; set; }

        /// <summary>
        /// 状态 
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 退款失败原因 
        /// </summary>
        public string Memo { get; set; }

        /// <summary>
        /// 创建时间 
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新时间 
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 代理佣金 
        /// </summary>
        public decimal AgentMoney { get; set; }

        /// <summary>
        /// 代理ID 
        /// </summary>
        public long? PId { get; set; }
        public int? StoreId { get; set; }
        public string SourceType { get; set; }
    }
}